package core.entities;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;


public class Entity extends AbstractEntity
{

	public Entity(int x, int y, Image sprite)
	{
		super(x, y, sprite.getWidth(), sprite.getHeight(), sprite);
	}
	
	@Override
	public void render(Graphics g)
	{
		g.drawImage(sprite, x, y);
	}
	@Override
	public void render(Graphics g , float scale)
	{
		g.drawImage(sprite.getScaledCopy(scale), x, y);		
	}
	
	@Override
	public void update(int delta)
	{
		super.update(delta);
	}

	@Override
	public Image getSprite()
	{
		return super.getSprite();
	}
	
	@Override
	public void setSprite(Image sprite)
	{
		super.setSprite(sprite);
		w = sprite.getWidth();
		h = sprite.getHeight();
	}
	
}
